import cv2
import numpy as np
from matplotlib import pyplot as plt
import random,time

from PIL import ImageGrab
import pyautogui
import cv2
import numpy as np
import time
# from matplotlib import pyplot as plt

def xunhuan(x,y):
    pyautogui.moveTo(x, y)  # 鼠标移动到坐标位置
    pyautogui.click()  # 鼠标点击


canshu = [(432, 227), (946, 227), (1428, 227), (432, 445), (946, 445), (1428, 445), (432, 635), (946, 635), (1428, 635)]
random.shuffle(canshu)
print(canshu[0][0])

xunhuan(canshu[0][0],canshu[0][1])